<script setup>
import { Modal } from 'ant-design-vue'
import { ArrowLeftOutlined, DownOutlined, DownloadOutlined, PlusOutlined, ReloadOutlined, SearchOutlined, SettingOutlined, UpOutlined } from '@ant-design/icons-vue'
import { exportTrade, getBalanceApi, getBalanceDetail, getChannelName, getMerchantList, getTradeType } from '~@/api/card/index'

defineOptions({
  name: 'CARD',
})
const userStore = useUserStore()
const { hasPermission } = userStore
const message = useMessage()
const columns = ref([
  {
    title: '医院名称',
    dataIndex: 'appName',
    width: 200,
  },
  {
    title: '院区名称',
    dataIndex: 'subAppName',
    width: 200,
  },
  {
    title: '平台订单号',
    dataIndex: 'platRequestNo',
    width: 250,
  },
  {
    title: '交易卡号',
    dataIndex: 'cardNo',
    width: 220,
  },
  {
    title: '交易类型',
    dataIndex: 'tradeType',
    align: 'center',
    width: 100,
    customRender: ({ text }) => {
      switch (text) {
        case 'DEFRAY':
          return '支付'
        case 'REFUND':
          return '退费'
        case 'RECHARGE':
          return '充值'
        default:
          return '提现'
      }
    },
  },
  {
    title: '交易金额',
    align: 'center',
    dataIndex: 'defrayFee',
    width: 150,

  },
  {
    title: '支付方式',
    dataIndex: 'channelName',
    align: 'center',
    width: 180,
    customRender: ({ text }) => {
      return text || '--'
    },
  },
  {
    title: '交易时间',
    align: 'center',
    dataIndex: 'requestCompleteTime',
    width: 200,
  },
  {
    title: '操作',
    dataIndex: 'action',
    align: 'center',
    fixed: 'right',
    width: 110,

  },
])
const tradeOptions = shallowRef([
  // { label: '支付', value: 'DEFRAY' },
  // { label: '退费', value: 'REFUND' },
  // { label: '充值', value: 'RECHARGE' },
  // { label: '提现', value: 'WITHDRAWAL' },
])
const current = shallowRef(2)
const description = '2025-02-18 16:49:58'
const channelOptions = shallowRef([])
const merchantOptions = shallowRef([])
const loading = shallowRef(false)
const merchantloading = shallowRef(false)
const totalNum = shallowRef(0)
const pagination = reactive({
  pageSize: 8,
  pageSizeOptions: ['10', '20', '30', '40'],
  current: 1,
  total: totalNum,
  showSizeChanger: true,
  // showQuickJumper: true,
  showTotal: total => `总共：${total}`,
  onChange(current, pageSize) {
    pagination.pageSize = pageSize
    pagination.current = current
    init()
  },
})
const dataSource = shallowRef([])
const detailInfo = shallowRef({
  appName: void 0,
  platRequestNo: void 0,
  accountNo: void 0,
  appId: void 0,
  cardNo: void 0,
  tradeType: void 0,
  tradeDate: void 0,
  channel: void 0,
  phone: void 0,
  userName: void 0,
  requestCompleteTime: void 0,
  requestStartTime: void 0,
  channelName: void 0,
  defrayFee: void 0,
  status: void 0,
  origPlatRequestNo: void 0,
  defrayNo: void 0,

})
const formModel = reactive({
  platRequestNo: void 0,
  accountNo: void 0,
  appId: void 0,
  cardNo: void 0,
  tradeType: void 0,
  tradeDate: void 0,
  channelFilter: void 0,
})
const tableSize = ref(['large'])
const open = ref(false)
const showTable = ref(true)
const options = computed(() => {
  return columns.value.map((item) => {
    if (item.dataIndex === 'action') {
      return {
        label: item.title,
        value: item.dataIndex,
        disabled: true,
      }
    }
    return {
      label: item.title,
      value: item.dataIndex,
    }
  })
})
const dropdownVisible = ref(false)
const getCheckList = computed(() => columns.value.map(item => item.dataIndex))
const state = reactive({
  indeterminate: false,
  checkAll: true,
  checkList: getCheckList.value,
})
// 当前可见列的key集合
const visibleKeys = ref(
  columns.value.filter(col => col.visible).map(col => col.key),
)
onMounted(() => {
  init()
  getType()
  getChannel()
})
// 查询交易类型字典值
async function getType() {
  try {
    const res = await getTradeType()
    // window.location.href='https://heren-pay-reconciliation.cn-hangzhou.oss.aliyuncs.com/test/card/bill/CARD_RECHARGE20250307.xls'
    tradeOptions.value = res.data
  }
  catch (e) {
  }
  finally {
    console.log(11)
  }
}

// 查询充值提现字典值
async function getChannel() {
  try {
    const res = await getChannelName()
    // window.location.href='https://heren-pay-reconciliation.cn-hangzhou.oss.aliyuncs.com/test/card/bill/CARD_RECHARGE20250307.xls'
    channelOptions.value = res.data
  }
  catch (e) {
  }
  finally {
    console.log(22)
  }
}
// 日账单查询
async function init() {
  if (loading.value)
    return
  loading.value = true
  try {
    const startDate = formModel.tradeDate?.[0]?.format('YYYY-MM-DD')
    const endDate = formModel.tradeDate?.[1]?.format('YYYY-MM-DD')
    const { data } = await getBalanceApi({
      param: { ...formModel, startDate, endDate },
      page: {
        currentPage: pagination.current,
        pageSize: pagination.pageSize,
      },

    })
    if (formModel.tradeType === 'RECHARGE') {
      columns.value.splice(1, 0, {
        title: '院区名称',
        dataIndex: 'subAppName',
        width: 200,
      })
    }
    else {
      columns.value = [
        {
          title: '医院名称',
          dataIndex: 'appName',
          width: 200,
        },
        {
          title: '平台订单号',
          dataIndex: 'platRequestNo',
          width: 250,
        },
        {
          title: '交易卡号',
          dataIndex: 'cardNo',
          width: 220,
        },
        {
          title: '交易类型',
          dataIndex: 'tradeType',
          align: 'center',
          width: 100,
          customRender: ({ text }) => {
            switch (text) {
              case 'DEFRAY':
                return '支付'
              case 'REFUND':
                return '退费'
              case 'RECHARGE':
                return '充值'
              default:
                return '提现'
            }
          },
        },
        {
          title: '交易金额',
          align: 'center',
          dataIndex: 'defrayFee',
          width: 150,

        },
        {
          title: '支付方式',
          dataIndex: 'channelName',
          align: 'center',
          width: 180,
          customRender: ({ text }) => {
            return text || '--'
          },
        },
        {
          title: '交易时间',
          align: 'center',
          dataIndex: 'requestCompleteTime',
          width: 200,
        },
        {
          title: '操作',
          dataIndex: 'action',
          align: 'center',
          fixed: 'right',
          width: 110,

        },
      ]
    }
    dataSource.value = data.data ?? []
    totalNum.value = data?.pageInfo.total
    // console.log(111, totalNum.value)
  }
  catch (e) {
    console.log(e)
  }
  finally {
    loading.value = false
  }
}
// 导出
async function exportExcel() {
  if (loading.value)
    return
  loading.value = true
  try {
    const startDate = formModel.tradeDate?.[0]?.format('YYYY-MM-DD')
    const endDate = formModel.tradeDate?.[1]?.format('YYYY-MM-DD')
    const { data } = await exportTrade({
      param: { ...formModel, startDate, endDate },
      page: {
        currentPage: pagination.current,
        pageSize: pagination.pageSize,
      },

    })
    window.location.href = data.url
  }
  catch (e) {
    console.log(e)
  }
  finally {
    loading.value = false
  }
}
async function onSearch() {
  pagination.current = 1
  await init()
}
// 防抖优化接口请求
async function fetchOptions(value) {
  if (!value.trim()) {
    merchantOptions.value = []
    return
  }
  merchantloading.value = true
  const { data } = await getMerchantList(value)
  merchantOptions.value = data
  merchantloading.value = false
};
async function onReset() {
  formModel.accountNo = void 0
  formModel.cardNo = void 0
  formModel.endDate = void 0
  formModel.platRequestNo = void 0
  formModel.startDate = void 0
  formModel.tradeType = void 0
  formModel.channelFilter = void 0
  await init()
}
/**
 * 详情
 *  @param record
 *
 */
async function handleDetail(record) {
  loading.value = true
  try {
    const res = await getBalanceDetail(record?.id)
    // console.log(res)
    // window.location.href='https://heren-pay-reconciliation.cn-hangzhou.oss.aliyuncs.com/test/card/bill/CARD_RECHARGE20250307.xls'
    open.value = true
    detailInfo.value = res.data
    // console.log(detailInfo.value)
    // 支付或者退费类型
    if (detailInfo.value.tradeType === 'DEFRAY' || detailInfo.value.tradeType === 'REFUND') {
      if (detailInfo.value.defrayStartTime) {
        current.value = 0
      }
      if (detailInfo.value.defrayCompleteTime) {
        current.value = 2
      }
      if (detailInfo.value.refundStartTime) {
        current.value = 3
      }
      if (detailInfo.value.refundCompleteTime) {
        current.value = 5
      }
    }
    if (detailInfo.value.tradeType === 'RECHARGE' || detailInfo.value.tradeType === 'WITHDRAWAL') {
      if (detailInfo.value.rechargeStartTime) {
        current.value = 0
      }
      if (detailInfo.value.rechargeCompleteTime) {
        current.value = 2
      }
      if (detailInfo.value.withdrawalStartTime) {
        current.value = 3
      }
      if (detailInfo.value.withdrawalCompleteTime) {
        current.value = 5
      }
    }

    loading.value = false
  }
  catch (e) {
    // router.push('/profile/basic')
    console.log(e)
    loading.value = false
  }
  finally {
    loading.value = false
  }
}
function handleReturn() {
  open.value = false
}
/**
 * 交易类型
 *
 */
function handleTradeType(type) {
  switch (type) {
    case 'DEFRAY':
      return '支付'
    case 'REFUND':
      return '退费'
    case 'RECHARGE':
      return '充值'
    default:
      return '提现'
  }
}
/**
 * 订单状态
 *
 */
function handleStatus(status) {
  switch (status) {
    case 'CREATED':
      return '已创建'
    case 'WAITING_PAYMENT':
      return '等待支付'
    case 'WAITING_PAYMENT_RESULT':
      return '等待支付处理结果'
    case 'SUCCESS':
      return '交易成功'
    case 'FAILED':
      return '交易失败'
    case 'TRADE_CLOSED':
      return '交易关闭'
    default:
      return '订单已取消'
  }
}
function handleOk() {
  open.value = false
  Modal.destroyAll()
  onSearch()
}
function handleSizeChange(e) {
  tableSize.value[0] = e.key
}
function filterAction(value) {
  return columns.value.filter((item) => {
    if (value.includes(item.dataIndex))
      return true

    return false
  })
}
const filterColumns = ref(filterAction(getCheckList.value))
function handleCheckAllChange(e) {
  Object.assign(state, {
    checkList: e.target.checked ? getCheckList.value : [],
    indeterminate: true,
  })
  filterColumns.value = e.target.checked ? filterAction(getCheckList.value) : filterColumns.value.filter(item => item.dataIndex === 'action')
}
watch(
  () => state.checkList,
  (val) => {
    state.indeterminate = !!val.length && val.length < getCheckList.value.length
    state.checkAll = val.length === getCheckList.value.length
  },
)
function handleResetChange() {
  state.checkList = getCheckList.value
  filterColumns.value = filterAction(getCheckList.value)
}
function handleCheckChange(value) {
  const filterValue = filterAction(value)
  filterColumns.value = filterValue
}

const expand = ref(false)
</script>

<template>
  <page-container>
    <div v-if="open === false">
      <a-card mb-4>
        <a-form :label-col="{ span: 7 }" :model="formModel">
          <a-row :gutter="[15, 0]">
            <a-col :span="8">
              <a-form-item name="platRequestNo" label="平台订单号">
                <a-input v-model:value="formModel.platRequestNo" placeholder="精确查询" allow-clear />
              </a-form-item>
            </a-col>
            <!-- <a-col :span="8">
              <a-form-item name="accountNo" label="商户订单号">
                <a-input v-model:value="formModel.accountNo" />
              </a-form-item>
            </a-col> -->
            <a-col :span="8">
              <a-form-item name="cardNo" label="交易卡号">
                <a-input v-model:value="formModel.cardNo" placeholder="精确查询" allow-clear />
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="tradeType" label="交易类型">
                <a-select v-model:value="formModel.tradeType" placeholder="请选择" allow-clear>
                  <a-select-option v-for="item in tradeOptions" :key="item.configKey" :value="item.configKey">
                    {{ item.configValue }}
                  </a-select-option>
                </a-select>
              </a-form-item>
            </a-col>
            <!-- <a-col :span="8">
              <a-form-item name="accountNo" label="原平台订单号">
                <a-input v-model:value="formModel.accountNo" placeholder="原平台订单号"/>
              </a-form-item>
            </a-col> -->
            <a-col :span="8">
              <a-form-item name="tradeDate" label="交易时间">
                <a-range-picker v-model:value="formModel.tradeDate" allow-clear style="width:100%" />
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="appId" label="医院名称">
                <a-select
                  v-model:value="formModel.appId"
                  show-search
                  placeholder="请输入关键字搜索"

                  allow-clear
                  :filter-option="false"
                  :not-found-content="merchantloading ? '加载中...' : '暂无数据'"
                  @search="fetchOptions"
                >
                  <a-select-option v-for="item in merchantOptions" :key="item.appId" :value="item.appId">
                    {{ item.appName }}
                  </a-select-option>
                </a-select>
              </a-form-item>
            </a-col>
            <a-col :span="8">
              <a-form-item name="defrayNo" label="商户订单号">
                <a-input v-model:value="formModel.defrayNo" style="width: 100%" placeholder="精确查询" allow-clear />
              </a-form-item>
            </a-col>
          </a-row>
          <a-row v-if="expand" :gutter="[15, 0]">
            <a-col :span="8">
              <a-form-item name="channelFilter" label="支付方式">
                <a-select v-model:value="formModel.channelFilter" placeholder="请选择" allow-clear>
                  <a-select-option v-for="item in channelOptions" :key="item.configKey" :value="item.configKey">
                    {{ item.configValue }}
                  </a-select-option>
                </a-select>
              </a-form-item>
            </a-col>
          </a-row>
          <a-row :span="24" style="text-align: right">
            <a-col :span="24">
              <a-space flex justify-end w-full>
                <a-button type="primary" @click="onSearch">
                  <SearchOutlined />查询
                </a-button>
                <a-button v-if="hasPermission('card:trade:export')" type="primary" class="ml-2" ghost @click="exportExcel()">
                  <DownloadOutlined />导出
                </a-button>
                <a-button type="link" @click="expand = !expand">
                  {{ expand ? '收起' : '高级筛选' }}
                  <UpOutlined v-if="expand" />
                  <DownOutlined v-else />
                </a-button>
              </a-space>
            </a-col>
          </a-row>
        </a-form>
      </a-card>

      <a-card>
        <a-table bordered :loading="loading" :columns="columns" :scroll="{ x: 1000 }" :data-source="dataSource" :pagination="pagination">
          <template #bodyCell="{ column, record }">
            <template v-if="column.dataIndex === 'defrayFee'">
              <span :style="{ color: record.defrayFee < 0 ? 'red' : 'black' }">{{ Number(record.defrayFee).toFixed(2) }}</span>
            </template>
            <template v-else-if="column.dataIndex === 'action'">
              <a @click="handleDetail(record)">详情</a>
            </template>
          </template>
        </a-table>
      </a-card>
    </div>
    <div v-else>
      <a-card class="transition-all-300" :bordered="false">
        <div class="flex flex-wrap justify-between">
          <span class="card-title">订单详情</span>
          <a-button class="mb-4" @click="handleReturn">
            <template #icon>
              <ArrowLeftOutlined />
            </template>
            返回
          </a-button>
        </div>
        <a-steps
          v-if="detailInfo.tradeType === 'DEFRAY' || detailInfo.tradeType === 'REFUND'"
          class="mt-10 mb-10"
          :current="current"
          :items="[
            {
              title: '支付发起时间',
              disabled,
              description: detailInfo.defrayStartTime ? detailInfo.defrayStartTime : '--',
            },
            {
              title: '支付完成时间',
              description: detailInfo.defrayCompleteTime ? detailInfo.defrayCompleteTime : '--',
              disabled,
            },
            {
              title: '支付成功',
              disabled,
            },
            {
              title: '退费发起时间',
              description: detailInfo.refundStartTime ? detailInfo.refundStartTime : '--',
              disabled,
            },
            {
              title: '退费完成时间',
              description: detailInfo.refundCompleteTime ? detailInfo.refundCompleteTime : '--',
              disabled,
            },
            {
              title: '退费成功',

              disabled,
            },
          ]"
        >
          <template #progressDot="{ index, status, prefixCls }">
            <a-popover>
              <span :class="`${prefixCls}-icon-dot`" />
              <template #content>
                <span>step {{ index }} status: {{ status }}</span>
              </template>
            </a-popover>
          </template>
        </a-steps>
        <!-- <a-divider style="margin-bottom: 32px" /> -->
        <a-steps
          v-else
          v-model:current="current"
          class="mt-15 mb-15"
          :items="[
            {
              title: '充值发起时间',
              description,
            },
            {
              title: '充值完成时间',
              description,
            },
            {
              title: '充值成功',
              disabled,
            },
            {
              title: '提现发起时间',
              description,
            },
            {
              title: '提现完成时间',
              description,
            },
            {
              title: '提现成功',
              disabled,
            },
          ]"
        >
          <template #progressDot="{ index, status, prefixCls }">
            <a-popover>
              <template #content>
                <span>step {{ index }} status: {{ status }}</span>
              </template>
              <span :class="`${prefixCls}-icon-dot`" />
            </a-popover>
          </template>
        </a-steps>

        <a-divider style="margin: 20px" />
        <a-descriptions class="pl-4">
          <a-descriptions-item label="医院名称">
            {{ detailInfo.appName }}
          </a-descriptions-item>
          <a-descriptions-item label="平台订单号">
            {{ detailInfo.platRequestNo }}
          </a-descriptions-item>
          <a-descriptions-item label="原平台订单号">
            {{ detailInfo.origPlatRequestNo ? detailInfo.origPlatRequestNo : "--" }}
          </a-descriptions-item>

          <!-- <a-descriptions-item label="商户订单号">
            {{ detailInfo.defrayNo ? detailInfo.defrayNo : "--" }}
          </a-descriptions-item> -->

          <a-descriptions-item label="交易卡号">
            {{ detailInfo.cardNo }}
          </a-descriptions-item>
          <a-descriptions-item label="交易类型">
            {{ handleTradeType(detailInfo.tradeType) }}
          </a-descriptions-item>
          <a-descriptions-item label="订单状态">
            {{ handleStatus(detailInfo.status) }}
          </a-descriptions-item>
        </a-descriptions>
        <a-divider style="margin-bottom: 20px" />
        <!-- 支付 -->
        <div v-if="detailInfo.defray">
          <a-descriptions title="支付信息" class="pl-4">
            <a-descriptions-item label="支付订单号">
              {{ detailInfo.defray.platDefrayNo ? detailInfo.defray.platDefrayNo : '--' }}
            </a-descriptions-item>
            <a-descriptions-item label="支付金额">
              {{ Number(detailInfo.defray.defrayFee).toFixed(2) }}
            </a-descriptions-item>
            <a-descriptions-item label="支付渠道">
              {{ detailInfo.defray.channelName ? detailInfo.defray.channelName : '--' }}
            </a-descriptions-item>
            <a-descriptions-item label="支付开始时间">
              {{ detailInfo.defray.defrayStartTime ? detailInfo.defray.defrayStartTime : '--' }}
            </a-descriptions-item>
            <a-descriptions-item label="支付完成时间">
              {{ detailInfo.defray.defrayCompleteTime ? detailInfo.defray.defrayCompleteTime : '--' }}
            </a-descriptions-item>
          </a-descriptions>
          <a-divider style="margin-bottom: 20px" />
        </div>

        <!-- 退费 -->
        <div v-if="detailInfo.refundList && detailInfo.refundList.length > 0" class="ml-4">
          <div class="ant-descriptions-title mb-8">
            退费信息
          </div>
          <a-timeline class="mt-4">
            <a-timeline-item v-for="(item, index) in detailInfo && detailInfo.refundList" :key="index" color="gray">
              <div class="flex justify-between" style="width:900px">
                <div class="adjust flex flex-col" style="width:600px">
                  <div class="flex mb-2">
                    <span class="left-title" style="width:130px">第三方平台退费单号： </span> <span class="right-title"> {{ item.outRefundNo }}</span>
                  </div>
                  <div class="flex">
                    <span class="left-title" style="width:130px">平台退费单号： </span> <span class="right-title"> {{ item.platRefundNo }}</span>
                  </div>
                </div>
                <div class="adjust flex flex-col">
                  <div class="flex mb-2">
                    <span class="left-title">退费金额： </span> <span class="right-title"> {{ Number(item.refundFee).toFixed(2) }}</span>
                  </div>
                  <div class="flex">
                    <span class="left-title">状态： </span> <span class="right-title"> {{ item.status }}</span>
                  </div>
                </div>
                <div class="adjust flex flex-col">
                  <div class="flex mb-2">
                    <span class="left-title">退费发起时间： </span> <span class="right-title"> {{ item.refundStartTime }}</span>
                  </div>
                  <div class="flex">
                    <span class="left-title">退费原因： </span> <span class="right-title"> {{ item.refundReason ? item.refundReason : '--' }}</span>
                  </div>
                </div>
              </div>
            </a-timeline-item>
          </a-timeline>
          <a-divider style="margin-bottom: 20px" />
        </div>
        <!-- 充值 -->
        <div v-if="detailInfo.recharge">
          <a-descriptions title="充值信息" class="pl-4">
            <a-descriptions-item label="充值单号">
              {{ detailInfo.recharge.rechargeNo }}
            </a-descriptions-item>
            <a-descriptions-item label="充值金额">
              {{ Number(detailInfo.recharge.rechargeFee).toFixed(2) }}
            </a-descriptions-item>
            <a-descriptions-item label="充值渠道">
              {{ detailInfo.recharge.channelName ? detailInfo.recharge.channelName : '--' }}
            </a-descriptions-item>
            <a-descriptions-item label="充值发起时间">
              {{ detailInfo.recharge.rechargeStartTime ? detailInfo.recharge.rechargeStartTime : '--' }}
            </a-descriptions-item>
            <a-descriptions-item label="充值完成时间">
              {{ detailInfo.recharge.rechargeCompleteTime ? detailInfo.recharge.rechargeCompleteTime : '--' }}
            </a-descriptions-item>
          </a-descriptions>
          <a-divider style="margin-bottom: 20px" />
        </div>
        <!-- 提现 -->
        <div v-if="detailInfo.withdrawalList && detailInfo.withdrawalList.length > 0" class="ml-4">
          <div class="ant-descriptions-title mb-8">
            提现信息
          </div>
          <a-timeline class="mt-4">
            <a-timeline-item v-for="(item, index) in detailInfo && detailInfo.withdrawalList" :key="index" color="gray">
              <div class="flex" style="width:900px">
                <div class="adjust flex flex-col" style="width:600px">
                  <div class="flex mb-2">
                    <span class="left-title" style="width:120px">第三方平台订单号： </span> <span class="right-title"> {{ item.channelTradeNo ? item.channelTradeNo : '--' }}</span>
                  </div>
                  <div class="flex">
                    <span class="left-title" style="width:120px">提现单号： </span> <span class="right-title"> {{ item.withdrawalNo }}</span>
                  </div>
                </div>
                <div class="adjust flex flex-col">
                  <div class="flex mb-2">
                    <span class="left-title">提现发起时间： </span> <span class="right-title"> {{ item.withdrawalStartTime }}</span>
                  </div>
                  <div class="flex">
                    <span class="left-title">提现完成时间：</span> <span class="right-title"> {{ item.withdrawalCompleteTime }}</span>
                  </div>
                </div>
                <div class="adjust flex flex-col">
                  <div class="flex mb-2">
                    <span class="left-title">提现金额： </span> <span class="right-title"> {{ Number(item.withdrawalFee).toFixed(2) }}</span>
                  </div>
                  <div class="flex">
                    <span class="left-title">状态：  </span> <span class="right-title"> {{ item.status }}</span>
                  </div>
                </div>
              </div>
            </a-timeline-item>
          </a-timeline>
          <a-divider style="margin-bottom: 20px" />
        </div>
        <a-descriptions title="用户信息" class="pl-4">
          <a-descriptions-item label="用户姓名">
            {{ detailInfo.userName }}
          </a-descriptions-item>
          <a-descriptions-item label="账号">
            {{ detailInfo.accountNo }}
          </a-descriptions-item>
          <a-descriptions-item label="联系电话">
            {{ detailInfo.phone }}
          </a-descriptions-item>
        </a-descriptions>
      </a-card>
      <div v-if="loading" class="fullscreen-loading">
        <a-spin size="large" />
      </div>
    </div>
  </page-container>
</template>

<style scoped>
  .ant-descriptions-title{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: auto;
    color: rgba(0, 0, 0, 0.88);
    font-weight: 600;
    font-size: 16px;
  }
   .adjust{
    padding-bottom:5px;
    width:400px;

  }
  .left-title{
    display: inline-block;
    width:100px;
    color:#6b778c;
    font-size: 13px;
  }
  .right-title{
    display: inline-block;
    color:#172b4d;
  }
</style>
